#include"MyBBSTree.h"
#include<utility>
void text()
{
 MyBBS::BBSTree<int,int> b; 
for(int i = 0;i < 1000000;i++)
{
  b.insert(std::make_pair(rand(),i));
}
// b.insert(std::make_pair(12,1));
// b.insert(std::make_pair(43,2));
// b.insert(std::make_pair(56,3));
// b.insert(std::make_pair(98,4));

if(b.IsBalance())
{
  std::cout<< "is balance" << std::endl;
}
else{
  std::cerr << "error" << std::endl;
}
 //b.print();
}
int main()
{
  srand((long long)time(0));
  text();
  return 0;
}
